package com.fairytask.engine.components.tab
{
	import flash.events.Event;
	import com.fairytask.engine.components.tab.TabViewItem;
	public class TabEvent extends Event
	{
		public static var TAB_CLICK			:String	=	"NX_TAB_CLICK";
		public static var TAB_OVER			:String	=	"NX_TAB_OVER";
		public static var TAB_CLICK_DISABLED	:String	=	"NX_TAB_CLICK_DISABLED";
		private var _item				:TabBarItem;	
		private var _view				:TabViewItem;
		public function TabEvent(type:String,item:TabBarItem, view:TabViewItem,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_item	=	item;
			_view	=	view;
			super(type, bubbles, cancelable);
		}

		public function get item():TabBarItem
		{
			return _item;
		}

		public function get view():TabViewItem
		{
			return _view;
		}


	}
}